import request from "@/utils/request3";
export function executionList(page,size,condition) {
    return request({
      url: '/execution/executionList',
      method: "get",
      params: {page:page,size:size,condition:condition},
    });
  }

  
export function classList(page,size,condition) {
  return request({
    url: '/class/classList',
    method: "get",
    params: {page:page,size:size,condition:condition},
  });
}


export function userList(page,size,condition) {
  return request({
    url: '/user/userlist',
    method: "get",
    params: {page:page,size:size,condition:condition},
  });
}


export function listDe(code) {
  return request({
    url: '/details/selectDes',
    method: "get",
    params: {code:code},
  });
}


export function listIns(code,condition,content,type) {
  return request({
    url: '/details/selectInspection',
    method: "get",
    params: {code:code,condition:condition,content:content,type:type},
  });
}


export function listDoc(code) {
  return request({
    url: '/scheme/documentQuery',
    method: "get",
    params: {code:code},
  });
}


export function patroladd(map) {
  return request({
    url: '/scheme/addPatrol',
    method: "post",
    data: JSON.stringify(map),
    header: {
      "Content-Type": "application/json", //如果写成contentType会报错
    },
  });
}


export function detailadd(map) {
  return request({
    url: '/scheme/addDetail',
    method: "post",
    data: JSON.stringify(map),
    header: {
      "Content-Type": "application/json", //如果写成contentType会报错
    },
  });
}


export function taskadd(map) {
  return request({
    url: '/scheme/addTask',
    method: "post",
    data: JSON.stringify(map),
    header: {
      "Content-Type": "application/json", //如果写成contentType会报错
    },
  });
}



export function adjust(map) {
  return request({
    url: '/scheme/adjust',
    method: "post",
    data: JSON.stringify(map),
    header: {
      "Content-Type": "application/json", //如果写成contentType会报错
    },
  });
}


export function upload(map) {
  return request({
    url: '/scheme/upload',
    method: "post",
    data: JSON.stringify(map),
    header: {
      "Content-Type": "application/json", //如果写成contentType会报错
    },
  });
}


export function del(id,status,code) {
  return request({
    url: '/scheme/del',
    method: "get",
    params: {id:id,status:status,code:code},
  });
}